﻿using System;
using Xunit;

namespace MyDemo
{
    public class StringDemo
    {
        [Fact()]
        public static void Test()
        {
            Assert.True(String.IsNullOrWhiteSpace(null));
            Assert.True(String.IsNullOrWhiteSpace(String.Empty));
            Assert.True(String.IsNullOrWhiteSpace(new String(' ', 20)));
            Assert.True(String.IsNullOrWhiteSpace("  \t  "));
            Assert.True(String.IsNullOrWhiteSpace(new String('\u2000', 10)));
            Assert.False(String.IsNullOrWhiteSpace("abcde"));
        }
    }
}